<template>
    <div id="main">
        <div class="left">
            <div @click="onClick('/appVue')">appVue</div>
            <div @click="onClick('/appVue1')">appVue1</div>
        </div>
        <div class="right">
            <div id="container"></div>
        </div>
        <router-view />
        
    </div>
</template>

<script>
export default {
    methods:{
        onClick(link){
            history.pushState(null, link, link);
        }
    }
}
</script>

<style lang="scss">
#main {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #000;
    display: flex;
    .left{
        width: 150px;
    }
    .right{
        width: calc(100vw -150px);
        #container{
            width: 100%;
            height: 100%;
        }
    }
}
</style>
